import { http } from '@/utils/http'

// 获取套餐列表数据
export const getPriceCardList = () => {
  return http.get('/app-api/pay/wallet-recharge-package/list')
}

// 创建订单
export const createOrder = (data) => {
  return http.post('/app-api/member/app-order/create', data)
}

// 提交支付订单
export const submitOrder = (data) => {
  return http.post('/app-api/pay/order/submit', data)
}

//获得订单分页
export const getOrderPage = (data) => {
  return http.get('/app-api/member/app-order/page', data)
}

// 取消订单
export const cancelOrder = (data) => {
  return http.delete('/app-api/member/app-order/delete?id=' + data)
}
